package com.byteblogs.helloblog.config;

import com.byteblogs.helloblog.bean.SystemPropertyBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: zsg
 * @description:
 * @date: 2019/12/21 19:44
 * @modified:
 */
@Configuration
public class ByteblogsAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean(SystemPropertyBean.class)
    public SystemPropertyBean systemPropertyBean() {
        return new SystemPropertyBean();
    }

}
